import os

base_path = os.getcwd().split('\\StockMonitor')[0] + '\\StockMonitor\\'
stock_path = base_path.split('\\stock')[0] + '\\stock\\'


def log_doc(path, doc_name):
    os.makedirs(path, exist_ok=True)  # 创建一个文件夹
    return open(os.path.join(os.path.dirname(path), doc_name), "a", encoding='utf-8')


if __name__ == '__main__':
    print("")
